<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets" >

    <div id="search-pager">
	<ui:decorate template="/layout/boxed.xhtml">
		<ui:param name="toplevel" value="true" />
		<ui:param name="bordered" value="false" />
		<ui:param name="boxAlign" value="center" />
		
		<ui:fragment rendered="#{paging.page gt 0}">
			<s:link value="&lt;#{messages['search.previous']}" onclick="loadingWindowShow();">
				<f:param name="page" value="#{paging.page-1}"/>
			</s:link>
		</ui:fragment>
		<ui:repeat value="#{paging.pagerPages}" var="p">
			<ui:fragment rendered="#{p.value ne paging.pageString}">
				<s:link value=" #{p.label} " onclick="loadingWindowShow();">
					<f:param name="page" value="#{p.value}"/>
				</s:link>
			</ui:fragment>
			<ui:fragment rendered="#{p.value eq paging.pageString}">
				<h:outputText value=" #{p.label}" /><!-- (<h:outputText value="#{paging.allRows}" />)  -->
			</ui:fragment>
		</ui:repeat>
		<ui:fragment rendered="#{paging.page lt (paging.allPages-1)}">
			<s:link value="#{messages['search.next']}&gt;" onclick="loadingWindowShow();">
				<f:param name="page" value="#{paging.page+1}"/>
			</s:link>
		</ui:fragment>
	</ui:decorate>
    </div>
</ui:composition>
